package com.easylinkin.linkappapi.quality.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.quality.dto.ActualMeasureDetailsDTO;
import com.easylinkin.linkappapi.quality.entity.ActualMeasureDetails;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * ActualMeasureDetails表数据库访问层
 *
 * @author zhengwen
 * @date 2022/09/01
 */
public interface ActualMeasureDetailsMapper extends BaseMapper<ActualMeasureDetails> {


    /**
     * 查询分页
     *
     * @param page        分页参数对象
     * @param appQualityActualMeasureDetails 过滤参数对象
     * @return 查询分页结果
     */
    IPage<ActualMeasureDetails> selectPage(Page page, @Param("appQualityActualMeasureDetails") ActualMeasureDetails appQualityActualMeasureDetails);

    /**
     * 查询单条
     *
     * @param id 主键id
     * @return 查询结果
     */
    ActualMeasureDetails getOneById(@Param("id") Serializable id);

    /**
     * 根据实测实量id查询详情DTOlist
     * @param infoId 实测实量id
     * @return 详情dtoList
     */
    List<ActualMeasureDetailsDTO> selectDetailsDtoByInfoId(Long infoId);
}

